<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <span>{{msg}}</span>
    </div>
</body>
<script src="./js/vue.js"></script>
<script>
    Vue.config.productionTip = false;
    var vm = new Vue({
        //el:"#app", //1.el帮我们指定了模板 2.确定了vm对应的挂载节点
        template:"<strong>{{msg}}</strong>",
        data:{
            msg:"msg----"
        }
    })
    vm.$mount("#app")//1.el帮我们指定了模板 2.确定了vm对应的挂载节点



    console.log(vm.$root === vm)
    /*
    console.log(vm.$el)
    console.log(vm.$options.el)
    console.log(vm.$data.msg)
    */
</script>
</html>